#include "SystemUtils.h"
#include <chrono>

string SystemUtils::LocalTime()
{
    std::string strTime
        = boost::posix_time::to_iso_extended_string(boost::posix_time::second_clock::local_time());
    strTime.replace(10, 1, 1, ' ');

    return strTime;
}

string SystemUtils::GetUUid()
{
    auto pNow = std::chrono::system_clock::now();
    auto t = std::chrono::system_clock::to_time_t(pNow);

    return std::to_string(t);
}
